﻿<Window x:Class="Itasa.Config"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Configurazione" MinHeight="450" MaxHeight="450" Height="450" Width="520" MaxWidth="520" MinWidth="520">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"></ColumnDefinition>
            <ColumnDefinition Width="350"></ColumnDefinition>
            <ColumnDefinition Width="50"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="11*" />
        </Grid.RowDefinitions>
        <Label Grid.Column="0" Grid.Row="0" Name="lMyItasaUrl" Content="MyITASA Rss" VerticalContentAlignment="Center" Height="23" Margin="4" Padding="1" FlowDirection="RightToLeft" />
        <TextBox Grid.Column="1" Width="340" Grid.Row="0" Name="tMyItasaUrl" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" ToolTip="Inserisci l'URL dell'RSS del tuo MyItasa" Text="Inserisci l'URL dell'RSS del tuo MyItasa" AutoWordSelection="True" Height="23" Margin="4" />
        <Label Grid.Column="0" Grid.Row="1" Name="lItasaUrl" Content="ITASA Rss" VerticalContentAlignment="Center" Height="23" Margin="4" Padding="1" FlowDirection="RightToLeft" />
        <TextBox Grid.Column="1" Width="340" Grid.Row="1" Name="tItasaUrl" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" ToolTip="Inserisci l'URL dell'RSS di Itasa" Text="Inserisci l'URL dell'RSS di Itasa" AutoWordSelection="True" Height="23" Margin="4" />
        <Label Grid.Column="0" Grid.Row="2" Name="lItasaUsr" Content="ITASA Username" VerticalContentAlignment="Center" Height="23" Margin="4" Padding="1" FlowDirection="RightToLeft" />
        <TextBox Grid.Column="1" Width="340" Grid.Row="2" Name="tItasaUsr" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" ToolTip="Username" Text="" AutoWordSelection="True" Height="23" Margin="4" />
        <Label Grid.Column="0" Grid.Row="3" Name="lItasaPwd" Content="ITASA Password" VerticalContentAlignment="Center" Height="23" Margin="4" Padding="1" FlowDirection="RightToLeft" />
        <PasswordBox Grid.Column="1" Width="340" Grid.Row="3" Name="tItasaPwd" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" ToolTip="Password" Height="23" Margin="4" />
        <Label Grid.Column="0" Grid.Row="4" Name="lSubsDir" Content="Download Dir" VerticalContentAlignment="Center" Height="23" Margin="4" Padding="1" FlowDirection="RightToLeft" />
        <TextBox Grid.Column="1" Width="340" Grid.Row="4" Name="tSubsDir" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" ToolTip="Directory dove memorizzare i sottotitoli scaricati" Text="" AutoWordSelection="True" Height="23" Margin="4" />
        <Button Grid.Column="2" Grid.Row="4" Name="dirButton" Content="Scegli" Padding="1" Margin="4" Click="dirButton_Click" HorizontalAlignment="Center" VerticalAlignment="Bottom" />
        <Label Grid.Column="0" Grid.Row="5" Name="lTorrentsDir" Content="Torrent Dir" VerticalContentAlignment="Center" Height="23" Margin="4" Padding="1" FlowDirection="RightToLeft" />
        <TextBox Grid.Column="1" Width="340" Grid.Row="5" Name="tTorrentsDir" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" ToolTip="Directory dove memorizzare i torrent scaricati" Text="" AutoWordSelection="True" Height="23" Margin="4" />
        <Button Grid.Column="2" Grid.Row="5" Name="torrentdirButton" Content="Scegli" Padding="1" Margin="4" Click="torrentdirButton_Click" HorizontalAlignment="Center" VerticalAlignment="Bottom" />
        <Button Grid.Column="2" Grid.Row="9" Name="saveButton" Content="Salva" Padding="1" Margin="4" Click="saveButton_Click" HorizontalAlignment="Center" VerticalAlignment="Bottom" />
        <CheckBox Grid.Column="1" Grid.Row="7" Margin="5" Name="check_Additional" Content="Scarica dati addizionali sui sottotitoli delle serie preferite" IsChecked="False" />
        <CheckBox Grid.Column="1" Grid.Row="8" Margin="5" Name="check_HideStart" Content="Minimizza all'avvio" IsChecked="False" />
        <GroupBox Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="6" Header="Tab Attivi" HorizontalAlignment="Left" Name="enabledTabs" VerticalAlignment="Center" Margin="35,5,0,0">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"></RowDefinition>
                    <RowDefinition Height="auto"></RowDefinition>
                    <RowDefinition Height="auto"></RowDefinition>
                    <RowDefinition Height="auto"></RowDefinition>
                </Grid.RowDefinitions>
                <CheckBox Grid.Row="0" Margin="5" Name="check_MyItasa" Content="MyItasa" Checked="check_MyItasa_Checked" Unchecked="check_MyItasa_Checked" />
                <CheckBox Grid.Row="1" Margin="5" Name="check_Itasa" Content="Itasa" IsChecked="True" />
                <CheckBox Grid.Row="2" Margin="5" Name="check_Calendar" Content="Calendario" />
                <CheckBox Grid.Row="3" Margin="5" Name="check_Torrent" Content="Torrents" Checked="check_Torrent_Checked" />
            </Grid>
        </GroupBox>
        <GroupBox Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="6" Header="Opzioni Download" Height="100" HorizontalAlignment="Right" Margin="0,5,70,0" Name="download" VerticalAlignment="Top">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"></RowDefinition>
                    <RowDefinition Height="auto"></RowDefinition>
                    <RowDefinition Height="auto"></RowDefinition>
                </Grid.RowDefinitions>
                <CheckBox Grid.Row="0" Margin="5" Name="check_ShowDir" Content="Dividi downloads per Serie TV" />
                <CheckBox Grid.Row="1" Margin="5" Name="check_Unzip" Content="Estrai sottotitoli automaticamente" Visibility="Hidden" />
                <CheckBox Grid.Row="2" Margin="5" Name="check_AutoDl" Content="Scarica nuovi sottotitoli automaticamente" />
            </Grid>
        </GroupBox>
    </Grid>
</Window>
